package com.marktotop.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.marktotop.entity.system.Log;
import com.marktotop.response.ResultBean;
import org.springframework.scheduling.annotation.Async;

/**
 * <p>
 * 操作日志表 服务类
 * </p>
 *
 * @author MarkToTop
 * @since 2021-07-12
 */
public interface ILogService extends IService<Log> {


    /**
     * 异步保存操作日志
     * @param newLog
     */
    @Async("CodeAsyncThreadPool")
    void saveLog(Log newLog);

    /**
     * 分页展示操作日志列表
     *
     * @param pageNum
     * @param pageSize
     * @param log
     * @return
     */
    ResultBean findLogList(Integer pageNum, Integer pageSize, Log log);
}
